package com.tttshaoqi.common.utils;
import com.tttshaoqi.pojo.dto.EmployeeDTO;

public class EmpHolder {
    private static final ThreadLocal<EmployeeDTO> tl = new ThreadLocal<>();

    public static void saveEmp(EmployeeDTO employeeDTO){
        tl.set(employeeDTO);
    }

    public static EmployeeDTO getEmp(){
        return tl.get();
    }

    public static void removeEmp(){
        tl.remove();
    }
}
